package com.idTech.utils;

import com.idTech.iDTechModBase;

import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBed;
import net.minecraft.item.ItemStack;

public class survivalUtils 
{
	public static void dirtToBasics()
	{
		ItemStack dirtStack = new ItemStack(Block.dirt);
		ItemStack diamondStack = new ItemStack(Item.diamond, 64);
		ItemStack bedStack = new ItemStack(Item.bed, 1);
		ItemStack wheatStack = new ItemStack(Item.wheat, 64);
		ItemStack coal = new ItemStack(Item.coal, 64);
		ItemStack enderPealr = new ItemStack(Item.enderPearl, 64);
		ItemStack iron = new ItemStack(Item.ingotIron, 64);
		ItemStack obsidian = new ItemStack(Block.obsidian, 64);
		ItemStack flintAndSteal = new ItemStack(Item.flintAndSteel, 64);
		ItemStack glowStone = new ItemStack(Block.glowStone, 64);
		ItemStack dirtStack64 = new ItemStack(Block.dirt, 64);
		ItemStack expBottle = new ItemStack(iDTechModBase.superExpBottle, 64);
		ItemStack goldenApple = new ItemStack(Item.appleGold, 64);
		ItemStack eyeOfEnder = new ItemStack(Item.eyeOfEnder, 64);
		ItemStack bow = new ItemStack(Item.bow);
		ItemStack arrow = new ItemStack(Item.arrow, 64);
		ItemStack enchantTable = new ItemStack(Block.enchantmentTable);
		ItemStack bookShelf = new ItemStack(Block.bookShelf, 64);
		//GameRegistry.addShapelessRecipe(diamondStack, dirtStack);
		GameRegistry.addRecipe(eyeOfEnder, "x x", "x x", "   ", 'x', dirtStack);
		GameRegistry.addRecipe(diamondStack, "   ", "   ", "x  ", 'x', dirtStack);
		GameRegistry.addRecipe(bedStack, "   ", "x  ", "   ", 'x', dirtStack);
		GameRegistry.addRecipe(flintAndSteal, "x  ", "   ", "   ", 'x', dirtStack);
		GameRegistry.addRecipe(coal, " x ", "   ", "   ", 'x', dirtStack);
		GameRegistry.addRecipe(iron, "  x", "  x", "  x", 'x', dirtStack);
		GameRegistry.addRecipe(glowStone, "  x", " x ", "x  ", 'x', dirtStack);
		GameRegistry.addRecipe(dirtStack64, "xxx", "xxx", "xxx", 'x', dirtStack);
		GameRegistry.addRecipe(goldenApple, "x x", "x x", "x x", 'x', dirtStack);
		GameRegistry.addRecipe(expBottle, "xxx", "x x", "xxx", 'x', dirtStack);
		
		GameRegistry.addRecipe(bow, " x ", "  x", " x ", 'x', dirtStack);
		GameRegistry.addRecipe(arrow, " x ", "xxx", " x ", 'x', dirtStack);
		
		GameRegistry.addRecipe(enchantTable, "xxx", "x x", "x x", 'x', dirtStack);
		GameRegistry.addRecipe(bookShelf, "xxx", " x ", "xxx", 'x', dirtStack);
		
	}
	public static void dirtToExtraStuff()
	{
		ItemStack dirtStack = new ItemStack(Block.dirt);
		ItemStack expBottle = new ItemStack(iDTechModBase.superExpBottle, 64);
		ItemStack goldenApple = new ItemStack(Item.appleGold, 64);
		ItemStack eyeOfEnder = new ItemStack(Item.eyeOfEnder, 64);
		ItemStack diamondBlockStack = new ItemStack(Block.blockDiamond, 64);
		GameRegistry.addRecipe(expBottle, "xxx", "   ", "   ", 'x', dirtStack);
		GameRegistry.addRecipe(eyeOfEnder, "  x", "  x", "  x", 'x', dirtStack);
		GameRegistry.addRecipe(diamondBlockStack, "  x", " x ", "x  ", 'x', dirtStack);
		
	}
	
	public static void dirtToFirstBlocks()
	{
		ItemStack dirtStack = new ItemStack(Block.dirt);
		ItemStack expBottle = new ItemStack(iDTechModBase.superExpBottle, 64);
		ItemStack goldenApple = new ItemStack(Item.appleGold, 64);
		ItemStack goldenTomato = new ItemStack(iDTechModBase.tomatoFruit, 64);
		ItemStack eyeOfEnder = new ItemStack(Item.eyeOfEnder, 64);
		ItemStack diamondBlockStack = new ItemStack(Block.blockDiamond, 64);
		ItemStack myFirstBlockStack = new ItemStack(iDTechModBase.myFirstBlock,64);
		ItemStack enemySpawnWAnd = new ItemStack(iDTechModBase.enemySpawnWand);
		GameRegistry.addRecipe(myFirstBlockStack, "xxx", "   ", "   ", 'x', dirtStack);
		GameRegistry.addRecipe(goldenTomato, "  x", "  x", "  x", 'x', dirtStack);
		GameRegistry.addRecipe(diamondBlockStack, "  x", " x ", "x  ", 'x', dirtStack);
		GameRegistry.addRecipe(enemySpawnWAnd, "x x", " x ", "x x", 'x', dirtStack);
		//GameRegistry.addShapelessRecipe(output, params)
		
	}
	
	public static void dirtToFancy()
	{
		ItemStack dirtStack = new ItemStack(Block.dirt);
		ItemStack book = new ItemStack(Item.book, 64);
		ItemStack enchantTable = new ItemStack(Block.enchantmentTable);
		ItemStack anvil = new ItemStack(Block.anvil);
		ItemStack bookShelf = new ItemStack(Block.bookShelf);
		GameRegistry.addRecipe(anvil, " x ", " x ", " x ", 'x', dirtStack);
		GameRegistry.addRecipe(bookShelf, "xxx", "   ", "   ", 'x', dirtStack);
		GameRegistry.addRecipe(enchantTable, "   ", "x x", "   ", 'x', dirtStack);
		GameRegistry.addRecipe(book, "x x", "   ", "   ", 'x', dirtStack);
	}

	public static void dirtToDarkMagic()
	{
		ItemStack dirtStack = new ItemStack(Block.dirt);
		ItemStack book = new ItemStack(Item.book, 64);
		ItemStack obsidian = new ItemStack(Block.obsidian, 64);
		ItemStack bookShelf = new ItemStack(Block.bookShelf, 64);
		ItemStack netherBrick = new ItemStack(Block.netherBrick);
		ItemStack redstone = new ItemStack(Block.oreRedstone);
		ItemStack redstoneTorch = new ItemStack(Block.torchRedstoneIdle);
		
		GameRegistry.addRecipe(obsidian, " x ", " x ", " x ", 'x', dirtStack);
		GameRegistry.addRecipe(bookShelf, "xxx", "   ", "   ", 'x', dirtStack);
		GameRegistry.addRecipe(netherBrick, "   ", "x x", "   ", 'x', dirtStack);
		GameRegistry.addRecipe(redstone, "x x", "   ", "   ", 'x', dirtStack);
		GameRegistry.addRecipe(book, "x x", "   ", "   ", 'x', dirtStack);
		GameRegistry.addRecipe(book, "x x", "   ", "x x", 'x', dirtStack);
	//	EntityRegistry.
		
	}
}
